package com.hexacta.hrs.domain.exchange;

import java.text.SimpleDateFormat;
import java.util.Calendar;

import org.vectrics.common.db.AbstractRecordObject;
import org.vectrics.employee.Employee;

public class Confirmation extends AbstractRecordObject{
	private Long id;
	private Employee user;
	private Calendar date;
	
	public String getUserName(){
		return user.getPerson().getUser().getUserName();
	}
	
	public String getFormatedDate(){
		SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss");
		return sdf.format(date.getTime());
	}
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Employee getUser() {
		return user;
	}
	public void setUser(Employee user) {
		this.user = user;
	}
	public Calendar getDate() {
		return date;
	}
	public void setDate(Calendar date) {
		this.date = date;
	}
	
}
